package com.wuzhun.wxmp.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author renbaolin
 * @since 2022-12-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("pre_admin_user")
@ApiModel(value = "AdminUser对象", description = "管理员表")
public class AdminUser extends BaseEntity {

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("密码加密随机字符")
    @TableField("salt")
    private String salt;

    @ApiModelProperty("密码有效期")
    @TableField("password_expire_time")
    private Date passwordExpireTime;
}
